import request from '@/common/request.js';

//查询用户单个订单
export const queryOneOrdersApi = data => {
	return request.get({
		url: '/tube/user/queryOrdersNew',
		data: data
	});
}

//查询用户订单
export const queryOrdersApi = data => {
	return request.get({
		url: '/tube/user/queryOrders',
		data: data
	});
}

//用户操作订单
export const operateOrdersApi = data => {
	return request.put({
		url: '/tube/user/operateOrders',
		data: data
	});
}


//用户订单立即支付
export const payOrdersApi = data => {
	return request.post({
		url: '/tube/user/payOrders',
		data: data
	});
}

//用户订单删除
export const deleteOrdersApi = data => {
	return request.post({
		url: '/tube/user/deleteOrders',
		data: data
	});
}